package com.wzdigit.wms.basic.domain.inventory;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码SN流水号表
 * </p>
 *
 * @author 
 * @since 2021-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WMS_GOODS_SERIAL")
@KeySequence(value = "WMS_GOODS_SERIAL_SEQ", clazz = Integer.class)
public class GoodsSerial implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "GOODS_SERIAL_ID", type = IdType.INPUT)
    private Integer goodsSerialId;

    /**
     * 条码SN
     */
    @TableField("GOODS_SN")
    private String goodsSn;

    /**
     * 前缀
     */
    @TableField("PREFIX")
    private String prefix;

    /**
     * 流水号
     */
    @TableField("SERIAL_NUMBER")
    private Integer serialNumber;

    /**
     * 最后的生成时间
     */
    @TableField("LAST_TIME")
    private Date lastTime;

}